package com.liyuhan.onlinetaxibackground.Util;

import com.google.gson.Gson;
import com.liyuhan.onlinetaxibackground.dto.DataRequest;

// 解析请求体的工具类
public class GetRequestBody {
    public static DataRequest getRequestBody(String request){
        // 解析前端发送的GSON格式
        Gson gson = new Gson();
        return gson.fromJson(request, DataRequest.class);
    }
}
